{% extends 'temp_base.html' %}

{% block local_head_css_js %}
  <!-- Pace style -->
  <link rel="stylesheet" href="../../plugins/pace/pace.min.css">

{% end %}

{% block content %}
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        Error Page
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active">Error</li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content">

      <!-- Default box -->
      <div class="box">
        <div class="box-header with-border">
          <h3 class="box-title">Exception Information:</h3>

          <div class="box-tools pull-right">
            <button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="Collapse">
              <i class="fa fa-minus"></i></button>
            <button type="button" class="btn btn-box-tool" data-widget="remove" data-toggle="tooltip" title="Remove">
              <i class="fa fa-times"></i></button>
          </div>
        </div>
        <div class="box-body">
          <div class="col-sm-12">
          {% if globals().has_key('exc_lines') %}
            {% for line in exc_lines %}
            <li>{{line}}</li>
            {% end %}
          {% else %}
            <li>No Exception!</li>
          {% end %}
          </div>
          <div class="col-sm-12">
          {% if globals().has_key('stack_lines') %}
            {% for line in stack_lines %}
            <li>{{line}}</li>
            {% end %}
          {% else %}
            <li>No Stacktrace!</li>
          {% end %}
          </div>
        </div>
            <div class="ajax-content">
            </div>
        <!-- /.box-body -->
        <div class="box-footer">
          Please contact admin for help.
        </div>
        <!-- /.box-footer-->
      </div>
      <!-- /.box -->

    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
{% end %}